import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
  env: {
    IS_TEST: process.env.IS_TEST,
  },
  eslint: {
    ignoreDuringBuilds: true,
  },
  typescript: {
    ignoreBuildErrors: true,
  },
  /* config options here */
  webpack(config) {
    config.module.rules.push({
      test: /\.svg$/,
      use: ['@svgr/webpack'],
    })

    return config
  },
  images: {
    domains: ['lib-res.vertu.cn', 'another-domain.com'],
    // domains: ['*'],
  },
}

export default nextConfig
